package homework_07.home_02;

public class Addition extends Calculate {
    private double x;
    private double y;

    public Addition() {
    }

    @Override
    public void calculate() {
        System.out.println(this.x+this.y);
    }

    public Addition(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

}
